#!/usr/bin/env bash

AUTH="user:passwd"
REMOTE="host/dir"
for file in "$@"
do
    curl -u $AUTH -T "$file" "$REMOTE"
done
